                          {  Petrova Tatjana
     2012/10/14
     This program writes your equations of four common tangent lines .}
program CommonTangentlinesOfTwoCircumferences;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  a1,R1,R,g,x0,y0,R2,x1,y1,b1,g1,e,f,d:integer;
  a, b, c:real;
begin
  readln(R1,x0,y0,R2,x1,y1 );
  if(R2>R1) then
  begin
    R:=R2-R1;
    e :=(x0-x1);
    f :=(y0-y1)
  end else begin
    R:=R1-R2;
    e :=(x1-x0);
    f :=(y1-y0);
  end;
  g := (-R*e+f*round(sqrt(e*e+f*f-R*R)));
  g1:= (e*e+f*f);
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f-e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;
  if(R2>R1) then
  begin
    c:=-a*x0-b*y0 ;
    if (c<0) then
    begin
      c:=-c+R1;
      b:=-b;
      a:=-a;
    end else
      c:=-a*x0-b*y0+R1
  end else
  begin
    c:=-a*x1-b*y1;
    if (c<0) then
    begin
      c:=-c+R2;
      b:=-b;
      a:=-a;
    end else
      c:=-a*x1-b*y1+R2
  end;
  writeln(a,b,c);
  g := (-R*e-f*round(sqrt(e*e+f*f-R*R)));
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f+e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;
  c:=-a*x0-b*x0;
  if(R2>R1) then
  begin
    c:=-a*x0-b*y0;
    if (c<0) then
    begin
      c:=-c+R1;
      b:=-b;
      a:=-a;
    end else
      c:=-a*x0-b*y0+R1
  end else
  begin
    c:=-a*x1-b*y1;
    if (c<0) then
    begin
      c:=-c+R2;
      b:=-b;
      a:=-a;
    end else
      c:=-a*x1-b*y1+R2
  end;
  writeln(a,b,c);

  R:=R1+R2;

  g := (-R*e+f*round(sqrt(e*e+f*f-R*R)));
  g1:= (e*e+f*f);
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f-e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;
  if(R2>R1) then
  begin
    c:=-a*x0-b*y0;
    if (c<0) then
    begin
       c:=-c-R1;
       b:=-b;
       a:=-a
    end else
        c:=-a*x0-b*y0-R1
  end else
  begin
    c:=-a*x1-b*y1-R2;
    if (c<0) then
    begin
       c:=-c-R2;
       b:=-b;
       a:=-a
    end else
        c:=-a*x1-b*y1-R2;
  end ;
  writeln(a,b,c);
  g := (-R*e-f*round(sqrt(e*e+f*f-R*R)));
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f+e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;

  if(R2>R1) then
  begin
    c:=-a*x0-b*y0;
    if (c<0) then
    begin
      c:=-c-R1;
      b:=-b;
      a:=-a;
    end else
      c:=-a*x0-b*y0-R1
  end else
  begin
    c:=-a*x1-b*y1;
    if (c<0) then
    begin
       c:=-c-R2;
       b:=-b;
       a:=-a
    end else
        c:=-a*x1-b*y1-R2;
  end ;
  writeln(a,b,c);
  readln;
  
end.
    var
  a1,R,g,x0,y0,x1,y1,b1,g1,e,f,d:integer;
  a, b, c:real;

begin
  readln(R,x1,y1,x0,y0);
  e :=(x0-x1);
  f :=(y0-y1);
  g := (-R*e+f*round(sqrt(e*e+f*f-R*R)));
  g1:= (e*e+f*f);
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f-e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;
  c:=-a*x0-b*y0;
  writeln(a,b,c);
  g := (-R*e-f*round(sqrt(e*e+f*f-R*R)));
  a := g mod g1;
  a1 := g div g1;
  a := a+a1;
  d:=-R*f+e*round(sqrt(e*e+f*f-R*R)) ;
  b:=d mod g1;
  b1:= d div g1;
  b:=b+b1;
  c:=-a*x0-b*y0;
  writeln(a,b,c);
  readln;



end.
